package com.ruoyi.xiaoshou.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.xiaoshou.mapper.OrderAuditLogMapper;
import com.ruoyi.xiaoshou.domain.OrderAuditLog;
import com.ruoyi.xiaoshou.service.IOrderAuditLogService;
import com.ruoyi.common.core.text.Convert;

/**
 * 审核日志Service业务层处理
 * 
 * @author Rosou
 * @date 2025-06-17
 */
@Service
public class OrderAuditLogServiceImpl implements IOrderAuditLogService 
{
    @Autowired
    private OrderAuditLogMapper orderAuditLogMapper;

    /**
     * 查询审核日志
     * 
     * @param auditId 审核日志主键
     * @return 审核日志
     */
    @Override
    public OrderAuditLog selectOrderAuditLogByAuditId(Long auditId)
    {
        return orderAuditLogMapper.selectOrderAuditLogByAuditId(auditId);
    }

    /**
     * 查询审核日志列表
     * 
     * @param orderAuditLog 审核日志
     * @return 审核日志
     */
    @Override
    public List<OrderAuditLog> selectOrderAuditLogList(OrderAuditLog orderAuditLog)
    {
        return orderAuditLogMapper.selectOrderAuditLogList(orderAuditLog);
    }

    /**
     * 新增审核日志
     * 
     * @param orderAuditLog 审核日志
     * @return 结果
     */
    @Override
    public int insertOrderAuditLog(OrderAuditLog orderAuditLog)
    {
        return orderAuditLogMapper.insertOrderAuditLog(orderAuditLog);
    }

    /**
     * 修改审核日志
     * 
     * @param orderAuditLog 审核日志
     * @return 结果
     */
    @Override
    public int updateOrderAuditLog(OrderAuditLog orderAuditLog)
    {
        return orderAuditLogMapper.updateOrderAuditLog(orderAuditLog);
    }

    /**
     * 批量删除审核日志
     * 
     * @param auditIds 需要删除的审核日志主键
     * @return 结果
     */
    @Override
    public int deleteOrderAuditLogByAuditIds(String auditIds)
    {
        return orderAuditLogMapper.deleteOrderAuditLogByAuditIds(Convert.toStrArray(auditIds));
    }

    /**
     * 删除审核日志信息
     * 
     * @param auditId 审核日志主键
     * @return 结果
     */
    @Override
    public int deleteOrderAuditLogByAuditId(Long auditId)
    {
        return orderAuditLogMapper.deleteOrderAuditLogByAuditId(auditId);
    }
}
